package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class PictureBean implements Serializable, IJsonParser {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String file_id;
	private String height;
	private String url;
	private String width;

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getFile_id() {
		return file_id;
	}

	public String getHeight() {
		return height;
	}

	public String getUrl() {
		return url;
	}

	public String getWidth() {
		return width;
	}

	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson gson = null;
		if (null != json) {
			GsonBuilder b = new GsonBuilder();
			gson = b.create();
			return gson.fromJson(json, PictureBean.class);
		}
		return null;
	}

}
